/*
 * =====================================================================================
 *
 *       Filename:  utils.h
 *
 *    Description:  utilities header file
 *
 *        Version:  1.0
 *        Created:  01/01/12 21:41:56
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  LittleQ Su (), 98703060@nccu.edu.tw
 *        Company:  National Chengchi University, The Department of Computer Science
 *
 * =====================================================================================
 */
#ifndef __UTILS_H__
#define __UTILS_H__

#include "Headers.h"
#include "DataHandler.h"

int StrToInt(string str);
void remove_dups (Queryset & v) ;
void print_vector ( vector<int> );
bool has_key(const Datamap &the_map, const Datamap::key_type &the_key);
void addtodatamap ( Datamap &datamap , string key , vector<string> &v) ;
vector<string> &split(const string &s, char delim, vector<string> &elems) ;
vector<string> split(const string &s, char delim) ;

#endif
